package com.fs.generator.ui.jdbc.dialect;

public class OracleMetadataDialectImpl implements MetadataDialect {

	public static final String TABLES_SQL_TPL = "select table_name, comments as table_comment from user_tab_comments";
	public static final String COL_SQL_TPL = "select tc.column_name as name, comments, nullable from user_tab_columns tc, user_col_comments cc where cc.table_name = tc.table_name and tc.column_name = cc.column_name and tc.table_name='%s'";

	@Override
	public String tablesSql() {
		return TABLES_SQL_TPL;
	}

	@Override
	public String colSql(String tableName) {
		return String.format(COL_SQL_TPL, tableName);
	}

	@Override
	public String getDataBase() {
		return null;
	}

}
